/*
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2.1
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

/* Written by CimCim */

#ifndef _STRREPLACE_H
#define _STRREPLACE_H

#include <string.h>
#include <stdio.h>
#include <stdlib.h>

/**
 * function used to replace a caracter (or a string) by an other caracter (or string) in a string
 * pch_source : the original string
 * the string to replace
 * the replacing string
 * return : 
 * 	 -1 : an error occurs
 * 	  0 : the string2replace has been replaced by the replacing string (well done)
 */
signed long strReplace ( char ** ppch_source, char * pch_str2replace, char * pch_replacingStr );

#endif
